package io.renren.modules.title.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.title.entity.ExamTitle;
import io.renren.modules.title.entity.ExamTitleExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ExamTitleMapper extends BaseMapper<ExamTitle> {

    List<ExamTitle> selectByExample(ExamTitleExample examTitleExample);

    List<ExamTitle> getRandomSingleByCountAndCId(@Param("cid") Integer cid, @Param("singleNum")Integer singleNum);

    int updateByPrimaryKeySelective(ExamTitle record);

    List<ExamTitle> getRandomMultipleByCountAndCId(@Param("cid") Integer cid, @Param("multipleNum")Integer multipleNum);

    List<ExamTitle> getRandomJudgeByCountAndCId(@Param("cid") Integer cid, @Param("judgeNum")Integer judgeNum);

    List<ExamTitle> getRandomFillByCountAndCId(@Param("cid") Integer cid, @Param("fillNum")Integer fillNum);

    List<ExamTitle> getSingleQueListByPaperId(Integer paperId);
}
